package com.fsy.mqtt;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class MyMqqttMessageHandler implements MqttMessageHandler {

    @Override
    public void handleMessage(String topic, Object payload) {
        log.info("Receive mqtt: topic={}, payload={}", topic, payload.toString());
    }
}
